﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Contact.aspx.cs" Inherits="Contact" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table align="center" style="height: 374px">
    
        <tr>
            <td colspan="2">
               <asp:Label ID="lblMessage" runat="server" />
            </td>        
        </tr>
        <tr>
            <td> Fullname :</td>
            <td style="width: 371px">
                <asp:TextBox ID="txtFullname" runat="server" Width="200px"></asp:TextBox>
                <asp:RequiredFieldValidator 
                        ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtFullname" 
                        ErrorMessage="Enter Fullname"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td> Address :</td>
           <td style="width: 371px">
                <asp:TextBox ID="txtAddress" runat="server" Width="200px"></asp:TextBox>
                <asp:RequiredFieldValidator 
                        ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtAddress" 
                        ErrorMessage="Enter Address"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td> Phone number :</td>
           <td style="width: 371px">
                <asp:TextBox ID="txtPhone" runat="server" Width="200px"></asp:TextBox>
                <asp:RequiredFieldValidator 
                        ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPhone" 
                        ErrorMessage="Enter Phone number"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td> Email : </td>
            <td style="width: 371px">
                    <asp:TextBox ID="txtEmail" runat="server" CssClass="required" Width="200px"></asp:TextBox>

                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Enter email" ControlToValidate="txtEmail"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Email not valid" ControlToValidate="txtEmail" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)"></asp:RegularExpressionValidator></label>
            </td>
        </tr>
       <tr>
                            <td class="col1">Content :</td>
                            <td class="col2"><asp:TextBox ID="txtContent" runat="server" TextMode="MultiLine" 
                                    Width="199px" Height="100px" MaxLength="5000"/>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtContent"
                                    ErrorMessage="Input Content!" ValidationGroup="a"></asp:RequiredFieldValidator></td>
                          
                        </tr>
        <tr align="center">
            <td colspan="2" >
               &nbsp;  &nbsp;  &nbsp;<asp:Button ID="btnSend" runat="server" Text="Send" 
                    onclick="btnSend_Click" />
                &nbsp;  &nbsp;  &nbsp;  &nbsp;   
                <asp:Button ID="btnReset" runat="server" Text="Reset" 
                    CausesValidation="False" onclick="btnReset_Click" />
            </td>
        </tr>
    </table>
</asp:Content>

